<template>
  <div id="pakj-field-item" class="row" @click="onClick">
    <div class="field-item">{{title}}</div>
    <md-icon class="field-icon" :name="arrow" size="lg"></md-icon>
  </div>
</template>
<script>
import { Icon } from 'mand-mobile';
export default {
  name: 'pakj-field-item',
  props: {
    title: {
      type: String,
      default: ''
    },
    arrow: {
      type: String,
      default: 'arrow-right'
    }
  },
  components: {
    [Icon.name]: Icon
  },
  methods: {
    onClick(e) {
      this.$emit('click', e);
    }
  }
};
</script>
<style lang="stylus" scoped>
#pakj-field-item {
  width: 100%;
  background-color: #fff;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding-left: 30px;
  padding-right: 20px;

  .field-item {
    height: 88px;
    line-height: 88px;
  }

  .field-icon {
    color: #cccccc;
  }
}
</style>
